﻿@inherits Vowei.Web.G18nWebViewPage<Vowei.Web.Models.RegisterModel>
@using Vowei.Web.Models
@using System.Web.Mvc.Html 

@{
    ViewBag.Title = T("注册新用户");
    
}


<h2>@T("注册新用户")</h2>
<p>
    @string.Format(T("密码长度至少包含 {0} 个字符"), ViewBag.PasswordLength)
</p>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")
    <div>
        <fieldset>
            <legend>@T("新用户信息")</legend>
            
            <div class="editor-label">
                @T(m => m.Email)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Email)
                @Html.ValidationMessageFor(m => m.Email)
            </div>

            <div class="editor-label">
                @T(m => m.Password)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>

            <div class="editor-label">
                @T(m => m.ConfirmPassword)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.ConfirmPassword)
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </div>

            <p>
                <input type="submit" value="@T("注册")" />
            </p>
        </fieldset>
    </div>
}
